package com.young.springdemo.service.policy;

public class StudentDiscount implements Discount {

    private static final double discount = 0.8;

    @Override
    public double calcute(double price) {
        System.out.println("学生票打折");
        return price * discount;
    }
}
